<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<article class="cl pd-20">
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        系统内置的验证规则如下：</p>
    <h2 class="line" data-line="2" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        格式验证类</h2>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            require</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段必须，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'require</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            number 或者 integer</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为数字（采用<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">filter_var</code>验证），例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'number</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            float</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为浮点数字（采用<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">filter_var</code>验证），例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'float</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            boolean</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为布尔值（采用<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">filter_var</code>验证），例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'boolean</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            email</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为email地址（采用<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">filter_var</code>验证），例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'email</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'email</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            array</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为数组，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'info</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'array</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            accepted</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段是否为为 yes, on, 或是 1。这在确认"服务条款"是否同意时很有用，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'accept</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'accepted</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            date</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证值是否为有效的日期，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'date</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'date</span>'
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        会对日期值进行<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">strtotime</code>后进行判断。</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            alpha</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为字母，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'alpha</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            alphaNum</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为字母和数字，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'alphaNum</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            alphaDash</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为字母和数字，下划线<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">_</code>及破折号<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">-</code>，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'alphaDash</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            chs</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值只能是汉字，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'chs</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            chsAlpha</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值只能是汉字、字母，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'chsAlpha</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            chsAlphaNum</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值只能是汉字、字母和数字，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'chsAlphaNum</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            chsDash</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值只能是汉字、字母、数字和下划线_及破折号-，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'chsDash</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            activeUrl</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为有效的域名或者IP，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'host</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'activeUrl</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            url</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为有效的URL地址（采用<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">filter_var</code>验证），例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'url</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'url</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            ip</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为有效的IP地址（采用<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">filter_var</code>验证），例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'ip</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'ip</span>'
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        支持验证ipv4和ipv6格式的IP地址。</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            dateFormat:format</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否为指定格式的日期，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'create_time</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'dateFormat:y-m-d</span>'
</code></pre>
    <h2 class="line" data-line="139" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        长度和区间验证类</h2>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            in</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否在某个范围，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'in:1,2,3'</span>
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            notIn</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值不在某个范围，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'notIn:1,2,3'</span>
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            between</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否在某个区间，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'between:1,10'</span>
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            notBetween</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值不在某个范围，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'notBetween:1,10'</span>
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            length:num1,num2</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值的长度是否在某个范围，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'length:4,25'</span>
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        或者指定长度</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'length:4</span>'
</code></pre>
    <blockquote class="default" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 8px 0px; line-height: 1.7em; padding: 8px 16px; color: rgb(91, 192, 222); border-left: 5px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px; line-height: 1.7em; padding: 0px;">
            如果验证的数据是数组，则判断数组的长度。<br style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; display: block; margin: 0.2em;">
            如果验证的数据是File对象，则判断文件的大小。</p>
    </blockquote>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            max:number</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值的最大长度，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'max:25</span>'
</code></pre>
    <blockquote class="default" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 8px 0px; line-height: 1.7em; padding: 8px 16px; color: rgb(91, 192, 222); border-left: 5px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px; line-height: 1.7em; padding: 0px;">
            如果验证的数据是数组，则判断数组的长度。<br style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; display: block; margin: 0.2em;">
            如果验证的数据是File对象，则判断文件的大小。</p>
    </blockquote>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            min:number</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值的最小长度，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'min:5</span>'
</code></pre>
    <blockquote class="default" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 8px 0px; line-height: 1.7em; padding: 8px 16px; color: rgb(91, 192, 222); border-left: 5px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px; line-height: 1.7em; padding: 0px;">
            如果验证的数据是数组，则判断数组的长度。<br style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; display: block; margin: 0.2em;">
            如果验证的数据是File对象，则判断文件的大小。</p>
    </blockquote>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            after:日期</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否在某个日期之后，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;">'begin_time' =&gt; 'after:<span class="hljs-number" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(245, 135, 31);">2016</span>-3-18',
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            before:日期</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值是否在某个日期之前，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;">'end_time'   =&gt; 'before:<span class="hljs-number" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(245, 135, 31);">2016-10-01</span>',
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            expire:开始时间,结束时间</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证当前操作（注意不是某个值）是否在某个有效日期之内，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;">'expire_time'   =&gt; 'expire:<span class="hljs-number" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(245, 135, 31);">2016</span>-2-1,<span class="hljs-number" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(245, 135, 31);">2016-10-01</span>',
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            allowIp:allow1,allow2,...</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证当前请求的IP是否在某个范围，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'allowIp:114.45.4.55'</span>,
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        该规则可以用于某个后台的访问权限</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            denyIp:allow1,allow2,...</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证当前请求的IP是否禁止访问，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'denyIp:114.45.4.55'</span>,
</code></pre>
    <h2 class="line" data-line="239" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        字段比较类</h2>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            confirm</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段是否和另外一个字段的值一致，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'repassword'</span>=&gt;<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'require</span>|confirm:password'
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">5.0.4+</code>版本开始，增加了字段自动匹配验证规则，如password和password_confirm是自动相互验证的，只需要使用</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'password'</span>=&gt;<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'require</span>|confirm'
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        会自动验证和password_confirm进行字段比较是否一致，反之亦然。</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            different</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段是否和另外一个字段的值不一致，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>=&gt;<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'require</span>|different:account'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            eq 或者 = 或者 same</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证是否等于某个值，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'score</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'eq:100</span>'
<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=:100</span>'
<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'same:100</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            egt 或者 &gt;=</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证是否大于等于某个值，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'score</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'egt:60</span>'
<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'&gt;=:100</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            gt 或者 &gt;</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证是否大于某个值，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'score</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'gt:60</span>'
<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'&gt;:100</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            elt 或者 &lt;=</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证是否小于等于某个值，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'score</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'elt:100</span>'
<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'&lt;=:100</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            lt 或者 &lt;</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证是否小于某个值，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'score</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'lt:100</span>'
<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'num</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'&lt;:100</span>'
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            验证字段比较支持对比其他字段（V5.0.8+）</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证对比其他字段大小（数值大小对比），例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'price</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'lt:market_price</span>'
<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'price</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'&lt;:market_price</span>'
</code></pre>
    <h2 class="line" data-line="309" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        filter验证</h2>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        支持使用filter_var进行验证，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'ip</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'=&gt;</span><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'filter:validate_ip</span>'
</code></pre>
    <h2 class="line" data-line="315" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        正则验证</h2>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        支持直接使用正则验证，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'zip'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'\d{6}'</span>,
<span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 或者</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'zip'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'regex:\d{6}'</span>,
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        如果你的正则表达式中包含有<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">|</code>符号的话，必须使用数组方式定义。</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'accepted'</span>=&gt;[<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'regex'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'/^(yes|on|1)$/i'</span>],
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        也可以实现预定义正则表达式后直接调用，例如在验证器类中定义<code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 1em; display: inline-block; border-radius: 4px; padding: 2px 6px; background: rgb(249, 250, 250); word-break: break-all; white-space: pre; line-height: 1.3; border: 1px solid rgb(222, 217, 217); margin: 0px 5px;">regex</code>属性</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;">    <span class="hljs-keyword" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(137, 89, 168);">protected</span> $regex = [ <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'zip'</span> =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'\d{6}'</span>];
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        然后就可以使用</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'zip'</span>	=&gt;	<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'regex</span>:zip',
</code></pre>
    <h2 class="line" data-line="336" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        上传验证</h2>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            file</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证是否是一个上传文件</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            image:width,height,type</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证是否是一个图像文件，width height和type都是可选，width和height必须同时定义。</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            fileExt:允许的文件后缀</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证上传文件后缀</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            fileMime:允许的文件类型</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证上传文件类型</p>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            fileSize:允许的文件字节大小</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证上传文件大小</p>
    <h2 class="line" data-line="358" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        行为验证</h2>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        使用行为验证数据，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;">'data'=&gt;'behavior:<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">\a</span>pp<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">\i</span>ndex<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">\b</span>ehavior<span class="hljs-symbol" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">\C</span>heck'
</code></pre>
    <h2 class="line" data-line="364" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px 0px 0.3em; font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; line-height: 1.225; margin: 0px 0px 14px; font-weight: 200; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); color: rgba(0, 0, 0, 0.870588);">
        其它验证</h2>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            unique:table,field,except,pk</h3>
    </blockquote>
    <table style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border-collapse: collapse; border-spacing: 0px; table-layout: fixed; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <thead style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased;">
        <tr style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; break-inside: avoid;">
            <th style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-align: left; border-style: solid; border-color: rgb(136, 136, 136); padding: 3px 12px;">
                版本</th>
            <th style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-align: left; border-style: solid; border-color: rgb(136, 136, 136); padding: 3px 12px;">
                调整功能</th>
        </tr>
        </thead>
        <tbody style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased;">
        <tr style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; break-inside: avoid;">
            <td style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border-style: solid; border-color: rgb(136, 136, 136); padding: 3px 12px; border-top-left-radius: 3px;">
                5.0.5</td>
            <td style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; border-style: solid; border-color: rgb(136, 136, 136); padding: 3px 12px; border-top-right-radius: 3px; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;">
                支持指定完整模型类 并且默认会优先检测模型类是否存在 不存在则检测数据表</td>
        </tr>
        </tbody>
    </table>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证当前请求的字段值是否为唯一的，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 表示验证name字段的值是否在user表（不包含前缀）中唯一</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'unique:user'</span>,
<span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 验证其他字段</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'unique:user,account'</span>,
<span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 排除某个主键值</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'unique:user,account,10'</span>,
<span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 指定某个主键值排除</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'unique:user,account,10,user_id'</span>,
</code></pre>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        如果需要对复杂的条件验证唯一，可以使用下面的方式：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 多个字段验证唯一验证条件</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'unique:user,status^account'</span>,
<span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 复杂验证条件</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'name'</span>   =&gt; <span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'unique:user,status=1&amp;account='</span>.$data[<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'account'</span>],
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            requireIf:field,value</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段的值等于某个值的时候必须，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 14px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 当account的值等于1的时候 password必须</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'password'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'requireIf:account,1'</span>
</code></pre>
    <blockquote class="info" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 5px 5px 5px 15px; color: rgb(91, 192, 222); border-left: 4px solid rgb(91, 192, 222); background-color: rgb(244, 248, 250); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        <h3 style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; padding: 0px; line-height: 1.43; margin: 0px; font-weight: 200; font-size: 1.5em;">
            requireWith:field</h3>
    </blockquote>
    <p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin: 0px 0px 14px; line-height: 1.7em; padding: 0px; color: rgba(0, 0, 0, 0.870588); font-family: &quot;Microsoft Yahei&quot;, &quot;Helvetica Neue&quot;, Arial, Helvetica, sans-serif; font-size: 15.96px;">
        验证某个字段有值的时候必须，例如：</p>
    <pre style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; margin-top: 0px; margin-bottom: 0px; line-height: 1.45; padding: 16px; overflow: auto; background: rgb(249, 250, 250); border: 1px solid rgb(222, 217, 217); border-radius: 3px; color: rgba(0, 0, 0, 0.870588);"><code style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.566px; display: inline; border-radius: 4px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-break: break-all; line-height: inherit; max-width: 100%; margin: 0px; overflow: initial; border: none; tab-size: 4;"><span class="hljs-comment" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(142, 144, 140);">// 当account有值的时候password字段必须</span>
<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'password'</span>=&gt;<span class="hljs-string" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; color: rgb(113, 140, 0);">'requireWith:account'</span></code></pre>

</article>

</body>
</html>